export const SMKEY = '268b50bcb143d44f3c27d6390df5e37d';

// 解密
export function Decrypt(data) {
    const sm4 = require('sm-crypto').sm4;
    const decryptedData = sm4.decrypt(data, SMKEY);
    return decryptedData;
}

// 加密
export function Encrypt(data) {
    const sm4 = require('sm-crypto').sm4;
    const encryptData = sm4.encrypt(data, SMKEY);
    return encryptData;
}